/**
 From: https://github.com/nadim1992/KaiUI
 * ===========================
 * **************** Agenda ***
 *1. Basic
 *2. Fonts
 *3. Header
 *4. Separator
 *5. Software key
 *6. Toast
 *7. Lists
 *8. Options menu
 *9. Button
 * 10. Input
 * 11. Table
 * ===========================
 * Default: @themecolor:#320374;
 */
/* ============== Basic ============== */
h1,
h2,
h3,
h4,
h5,
ul,
p {
	margin: 0;
	padding: 0;
}

.statusbar-placeholder {
	background-color: #3faa7e;
	height: 26px;
}

#kui-app {
	width: 100%;
	height: 100%;
	font-family: "Open Sans";
	padding-top: 28px;
	padding-bottom: 30px;
}

.content-area {
	overflow: hidden;
	position: relative;
}

.overlay {
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	position: absolute;
	display: none;
}
/* ============== Fonts ============== */
.kui-h1 {
	font-size: 17px;
	font-weight: 300;
}

.kui-h2 {
	font-size: 17px;
	font-weight: 600;
}

.kui-h3,
.kui-h4,
.kui-sec {
	font-size: 14px;
	font-weight: 400;
}

.kui-h5 {
	font-size: 14px;
	font-weight: 600;
}

.kui-pri,
.kui-text,
.kui-btn,
.kui-link {
	font-size: 17px;
	font-weight: 400;
}

.kui-thi {
	font-size: 12px;
	font-weight: 400;
}
/* ============== Header ============== */
.kui-header {
	height: 28px;
	line-height: 28px;
	background-color: #3faa7e;
	color: #fff;
	text-align: center;
	position: absolute;
	top: 0;
	width: 100%;
	overflow-x: hidden;
}
/* ============== Tabs ============== */
.kui-tabs {
	padding-left: 5px;
	margin-right: 5px;
	list-style-type: none;
	overflow: hidden;
	white-space: nowrap;
	padding-top: 5px;
	font-size: 14px;
	margin-bottom: 3px;
}

.kui-tabs li {
	display: inline-block;
	color: #777777;
	padding-left: 5px;
	padding-right: 5px;
	font-weigt: 400;
	padding-bottom: 2px;
}

.kui-tabs li.active {
	border-bottom: 3px solid #3faa7e;
	font-weight: 600;
	color: #000000;
}
/* ============== Separator ============== */
.kui-separator {
	color: #6a6a6a;
	height: 28px;
	background-color: #e6e6e6;
	line-height: 28px;
	padding-left: 10px;
}
/* ============== Software key ============== */
.kui-software-key {
	height: 30px;
	background-color: #cccccc;
	display: flex;
	align-items: center;
	padding: 0 5px;
	color: #323232;
	position: absolute;
	bottom: 0;
	width: calc(100% - 10px);
}

.kui-software-key h5 {
	width: inherit;
}

.kui-software-key h5:first-child {
	text-align: left;
	overflow: hidden;
}

.kui-key-mid {
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}

.kui-software-key h5:last-child {
	text-align: right;
	overflow: hidden;
}
/* ============== Toast ============== */
.kui-toast {
	width: 100%;
	color: #fff;
	text-align: center;
	position: fixed;
	top: 0;
}

.kui-toast .kui-pri {
	background-color: #323232;
	margin-bottom: 0;
	padding-bottom: 5px;
}

.kui-toast-shadow {
	height: 6px;
	background-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}
/* ============== Lists ============== */
.kui-list {
	list-style: none;
}

.kui-list li {
	background-color: #fff;
	height: 60px;
	display: flex;
	align-items: center;
	padding: 0 10px;
}

.kui-list li.large {
	padding-top: 10px;
	padding-bottom: 10px;
}

.kui-list li .kui-list-img {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background-color: #2f3235;
	margin-right: 10px;
}

.kui-list-cont {
	width: 100%;
}

.kui-list-cont p {
	margin: 4px 0;
}

.kui-list-cont .kui-pri {
	color: #323232;
}

.kui-list-cont .kui-sec,
.kui-list-cont .kui-thi {
	color: #6a6a6a;
}

.kui-list li:focus {
	background-color: #3faa7e;
	outline: 0;
}

.kui-list li:focus .kui-pri,
.kui-list li:focus .kui-sec,
.kui-list li:focus .kui-thi {
	color: #fff;
}
/* ============== Options menu ============== */
.kui-option-menu {
	width: 100%;
	position: absolute;
	overflow: hidden;
	bottom: 0;
	display: none;
}

.kui-option-menu .kui-option-title {
	margin: 0;
	color: #323232;
	text-align: center;
	background-color: #d8d8d8;
	height: 28px;
	line-height: 28px;
}

.kui-options {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.kui-options li {
	height: 50px;
	line-height: 50px;
	padding-left: 10px;
	background-color: #fff;
}

.kui-options li:focus {
	outline: 0;
	color: #fff;
	background-color: #3faa7e;
}
/* ============== Button ============== */
button.kui-btn {
	width: 220px;
	height: 36px;
	border-radius: 2px;
	background: #ccc;
	text-align: center;
	color: #323232;
	border: 0;
	display: block;
	margin: auto;
}

button.kui-btn:focus {
	outline: 0;
	color: #fff;
	background-color: #3faa7e;
}
/* ============== Input ============== */
.kui-input-holder {
	height: 76px;
	padding: 10px;
	background-color: #fff;
}

.kui-input-holder.kui-focus-within {
	background-color: #3faa7e;
	outline: 0;
}

.kui-input-label {
	color: #323232;
	display: block;
	padding-bottom: 10px;
}

.kui-input-holder.kui-focus-within .kui-input-label {
	color: #fff;
}

.kui-input {
	height: 36px;
	width: 100%;
	border-radius: 2px;
	padding-left: 10px;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	border: 1px solid #aaaaaa;
}

.kui-input ::-moz-placeholder,
.kui-input :-moz-placeholder {
	color: #323232;
}

.kui-input:focus {
	outline: 0;
}
/* ============== Radio and Checkbox ============== */
.kui-radio,
.kui-checkbox {
	display: none;
}

.kui-radio + label::before,
.kui-checkbox + label::before {
	content: "";
	background-size: cover;
	height: 20px;
	width: 20px;
	display: inline-block;
	float: right;
}

.kui-radio + label::before {
	background-image: url(/img/icon-circle-black.svg);
}

.kui-radio:checked + label::before {
	background-image: url(/img/icon-c-check-black.svg);
}

li:focus .kui-radio + label::before {
	background-image: url(/img/icon-circle-white.svg);
}

li:focus .kui-radio:checked + label::before {
	background-image: url(/img/icon-c-check-white.svg);
}

.kui-checkbox + label::before {
	background-image: url(/img/icon-square-black.svg);
}

.kui-checkbox:checked + label::before {
	background-image: url(/img/icon-s-check-black.svg);
}

li:focus .kui-checkbox + label::before {
	background-image: url(/img/icon-square-white.svg);
}

li:focus .kui-checkbox:checked + label::before {
	background-image: url(/img/icon-s-check-white.svg);
}
/* ============== Table ============== */
.kui-table,
.kui-table th,
.kui-table td {
	border: 1px solid #3faa7e;
	border-collapse: collapse;
}

.kui-table {
	width: 100%;
}

.kui-table thead {
	background-color: #3faa7e;
	color: #fff;
}

.kui-table tr:focus {
	outline: 0;
	background-color: #3faa7e;
	color: #fff;
}

.kui-table td {
	width: 50%;
	padding: 4px 5px;
}

.kui-table td:last-child {
	text-align: right;
}
/* KaiOS portrait devices (240x320) */
@media only screen and (orientation: portrait) {
	.content-area {
		height: 236px;
	}

	.kui-option-menu {
		height: 178px;
	}

	.kui-options {
		height: 150px;
	}
}
/* KaiOS landscape devices (320x240) */
@media screen and (orientation: landscape) {
	.content-area {
		height: 156px;
	}

	.kui-option-menu {
		height: 128px;
	}

	.kui-options {
		height: 100px;
	}
}
/*** The End ******/